<html>
<head><meta charset="utf-8"><title>overriding --error-format · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/overriding.20--error-format.html">overriding --error-format</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="219982209"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/overriding%20--error-format/near/219982209" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/overriding.20--error-format.html#219982209">(Dec 15 2020 at 13:58)</a>:</h4>
<p>Is there a way to override <code>--error-format</code> ?<br>
<code>RUSTFLAGS="--error-format short" cargo check</code> gets me </p>
<div class="codehilite"><pre><span></span><code>error: Option &#39;error-format&#39; given more than once

error: could not compile `cfg-if`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: Option &#39;error-format&#39; given more than once

error: build failed
</code></pre></div>



<a name="219982309"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/overriding%20--error-format/near/219982309" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/overriding.20--error-format.html#219982309">(Dec 15 2020 at 13:59)</a>:</h4>
<p>I think cargo itself accepts it as message format?</p>



<a name="219982454"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/overriding%20--error-format/near/219982454" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/overriding.20--error-format.html#219982454">(Dec 15 2020 at 14:00)</a>:</h4>
<p>does not look like it :/</p>
<div class="codehilite"><pre><span></span><code>error: Found argument &#39;--error-format&#39; which wasn&#39;t expected, or isn&#39;t valid in this context

USAGE:
    cargo check [OPTIONS]
</code></pre></div>



<a name="219982472"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/overriding%20--error-format/near/219982472" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/overriding.20--error-format.html#219982472">(Dec 15 2020 at 14:00)</a>:</h4>
<p><code>cargo check --message-format short</code> doesn't immediately throw an error.</p>



<a name="219982608"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/overriding%20--error-format/near/219982608" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/overriding.20--error-format.html#219982608">(Dec 15 2020 at 14:01)</a>:</h4>
<p>huh strange</p>



<a name="219982619"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/overriding%20--error-format/near/219982619" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/overriding.20--error-format.html#219982619">(Dec 15 2020 at 14:01)</a>:</h4>
<p>but I can work with that, thanks! :)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>